<?php
include("../includes/common.php");
if($islogin2==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
if(empty($userrow['safecode']) && $conf['safe_switch'] == 1){
 exit("<script language='javascript'>alert('友情提示请设置安全验证码！');window.location.href='./user.php';</script>");
}
?>
<div class="clearfix"></div>  
  <div class="content-wrapper">
    <div class="container-fluid">
     <div class="row pt-2 pb-2">
        <div class="col-sm-9">
       </div>
     </div>
   <div class="row" >
   <br>
    <div class="col-12 col-lg-6 col-xl-4">
      <div class="card">
      <div class="card-body">
          <p class="mb-0 text-facebook">订单总数 <span class="float-right"><i class="icon-basket-loaded"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-facebook"><?php echo $orders?>条</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-facebook" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
     
      <div class="col-12 col-lg-6 col-xl-4">
      <div class="card">
      <div class="card-body">
          <p class="text-twitter mb-0">邀请人数 <span class="float-right"><i class="icon-user"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-twitter"><?php echo $invite?>个</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-twitter" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
     <div class="col-12 col-lg-6 col-xl-4">
      <div class="card">
      <div class="card-body">
          <p class="mb-0 text-facebook">转账总数 <span class="float-right"><i class="icon-basket-loaded"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-facebook"><?php echo $numrows;?>条</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-facebook" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
   </div>

   <div class="row">
     <div class="col-12 col-lg-6 col-xl-3">
      <div class="card">
      <div class="card-body">
          <p class="text-twitter mb-0">商户当前余额<span class="float-right"><i class="icon-wallet"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-twitter"><?php echo $userrow['money']?>元</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-twitter" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
     <div class="col-12 col-lg-6 col-xl-3">
      <div class="card">
      <div class="card-body">
          <p class="text-twitter mb-0">已结算余额<span class="float-right"><i class="icon-wallet"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-twitter"><?php echo $settle_money?>元</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-twitter" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
       <div class="col-12 col-lg-6 col-xl-3">
      <div class="card">
      <div class="card-body">
          <p class="text-twitter mb-0">今日收入<span class="float-right"><i class="icon-wallet"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-twitter"><?php echo $order_today?>元</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-twitter" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
       <div class="col-12 col-lg-6 col-xl-3">
      <div class="card">
      <div class="card-body">
          <p class="text-twitter mb-0">昨日收入<span class="float-right"><i class="icon-wallet"></i></span></p>
           <div class="text-center">
           <h4 class="mb-0 py-3 text-twitter"><?php echo $order_lastday?>元</h4>
           </div>
           <div class="progress-wrapper">
            <div class="progress" style="height:5px;">
            <div class="progress-bar bg-twitter" style="width:50%"></div>
             </div>
          </div>
        </div>
      </div>
     </div>
  </div>
  
    <div class="row">      
    <div class="col-lg-4">
           <div class="card profile-card-2">
            <div class="card-img-block">
                <img class="img-fluid" src="/user/kuyun/images/gallery/31.jpg" alt="Card image cap">
            </div>
            <div class="card-body pt-5">
             <img class="profile" src="<?php echo ($userrow['qq'])?'//q2.qlogo.cn/headimg_dl?bs=qq&dst_uin='.$userrow['qq'].'&src_uin='.$userrow['qq'].'&fid='.$userrow['qq'].'&spec=100&url_enc=0&referer=bu_interface&term_type=PC':'assets/img/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg'?>" alt="profile-image">
                <?php if($userrow['level']==2){?>
                <h5 class="card-title">黄金会员</h5>
                会员到期时间：<?php echo $yoursendtime ?>
                <a href="user.php?act=getvip"><span class="badge badge-pill badge-danger m-1">升级</span></a>
                <?php } elseif($userrow['level']==3){?>
                <h5 class="card-title">钻石会员</h5>
                 会员到期时间：<?php echo $yoursendtime ?>
                <?php } else{?>
                 <h5 class="card-title">普通会员</h5>
                 会员到期时间：<?php echo $yoursendtime ?>
                <a href="user.php?act=getvip"><span class="badge badge-pill badge-danger m-1">升级</span></a>
                <?php }?>
                 
                <div class="icon-block">
                </div>

            </div>
        </div>
          <div class="card">
            <div class="card-body">
              <h5 class="card-title">通道费率</h5>
              <div class="table-responsive">
               <table class="table">
                  <thead>
                    <tr>
                      <th scope="col">接口名称</th>
                      <th scope="col">接口类型</th>
                      <th scope="col">通道费率</th>
                      <th scope="col">接口状态</th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php if ($userrow['level']==1) { ?>
                      <tr>
                      <th scope="row">支付宝</th>
                      <td>alipay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_alipay;?>%</span></td>
                     <?php if ($conf['alipay_api']==4) { ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                     <?php } else {?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     
                     <?php } ?>
                    </tr>
                     <tr>
                      <th scope="row">微信</th>
                      <td>wxpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_wxpay;?>%</span></td>
                      <?php if ($conf['wxpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                    <tr>
                      <th scope="row">QQ</th>
                      <td>QQpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_qqpay;?>%</span></td>
                      <?php if ($conf['qqpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>

                    <?php } elseif($userrow['level']==2){?>
                     <tr>
                      <th scope="row">支付宝</th>
                      <td>alipay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_vip;?>%</span></td>
                      <?php if ($conf['alipay_api']==4){?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                     <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                    <tr>
                      <th scope="row">微信</th>
                      <td>wxpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_vip;?>%</span></td>
                     <?php if ($conf['wxpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                    <tr>
                      <th scope="row">QQ</th>
                      <td>QQpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_vip;?>%</span></td>
                      <?php if ($conf['qqpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                   <?php } elseif($userrow['level']==3){?>
                       <tr>
                      <th scope="row">支付宝</th>
                      <td>alipay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_svip;?>%</span></td>
                       <?php if ($conf['alipay_api']==4){?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                     <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                    <tr>
                      <th scope="row">微信</th>
                      <td>wxpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_svip;?>%</span></td>
                     <?php if ($conf['wxpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                    <tr>
                      <th scope="row">QQ</th>
                      <td>QQpay</td>
                      <td><span class="badge badge-pill badge-secondary m-1"><?php echo $money_rate_svip;?>%</span></td>
                       <?php if ($conf['qqpay_api']==4){ ?>
                       <td><span class="badge badge-pill badge-danger m-1">维护</span></td>
                       <?php }else{ ?>
                        <td><span class="badge badge-success m-1">正常 </span></td>
                     <?php } ?>
                    </tr>
                   <?php } ?>
                  </tbody>
                </table>
            </div>
            </div>
          </div>
 <div class="col-lg-12">
           <div class="card">
            <div class="card-body">
                <div class="tab-pane" id="edit">           
                        <div class="form-group row">
                            <label class="col-lg-3 col-form-label form-control-label">商户ID: </label>&nbsp;&nbsp;&nbsp;&nbsp;
                           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                           <?php if($conf['quicklogin']==1 && empty($userrow['alipay_uid'])){?>
                           <label class="col-lg-4 col-form-label form-control-label"> <a href="oauth.php?bind=true"><span class="badge badge-danger badge-pill">绑定支付宝 登录到本站</span></a></label>
                           <?php }else if($conf['quicklogin']==1 && !empty($userrow['alipay_uid'])){?>
                           <label class="col-lg-4 col-form-label form-control-label"> <a href="oauth.php?unbind=true" onclick="return confirm('解绑后将无法通过支付宝一键登录，是否确定解绑？');"><span class="badge badge-danger badge-pill">解绑支付宝快捷登入</span></a></label>
                           <?php }else if($conf['quicklogin']==2 && empty($userrow['qq_uid'])){?>
                            <label class="col-lg-4 col-form-label form-control-label"> <a href="connect.php?bind=true"><span class="badge badge-danger badge-pill">绑定QQ 一键登录到本站</span></a></label>
                            <?php }else{?>
                            <label class="col-lg-4 col-form-label form-control-label"> <a href="connect.php?unbind=true" onclick="return confirm('解绑后将无法通过QQ一键登录，是否确定解绑？');"><span class="badge badge-danger badge-pill">解绑QQ快捷登入</span></a></label>
                            <?php }?>
                            <div class="col-lg-12">
                                <input class="form-control" type="text" id='account' name="account" value="<?php echo $usid?>" required="required" disabled>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-lg-3 col-form-label form-control-label">商户秘钥:</label>
                            <div class="col-lg-12">
                                <input class="form-control" type="text" name="username" id='username' value="<?php echo $userrow['key']?>" required="required" disabled>
                            </div>
                        </div>
            </div>
        </div>
      </div>
      </div>
      
        </div>

         <div class="row col-lg-8">

          <div class="col-lg-12">
          <div class="card">
            <div class="card-header text-uppercase">官方公告</div>
             <div class="card-body">
                <ul class="list-group">
                 
                
                  <?php
                    foreach ($uesrs as $row){
                  
                  ?>
                  <li class="list-group-item d-flex justify-content-between align-items-center">
                   
                    <span class="badge badge-danger badge-pill"><?php echo $row['title'];?></span>&nbsp; 
                   <?php echo $row['content'];?>
                  </li>
                  <?php }?>
                </ul>
             </div>
          </div>
        </div>
  
        <div class="col-lg-12">
         <div class="card">
            <div class="card-body">
              <h5 class="card-title">结算数据表</h5>
              <div class="table-responsive">
               <table class="table">
                  <thead>
                    <tr>
                      <th scope="col">结算账户</th>
                      <th scope="col">结算金额</th>
                      <th scope="col">手续费</th>
                      <th scope="col">结算日期</th>
                      <th scope="col">结算状态</th>
                    </tr>
                  </thead>
                  <tbody>
                 
                    <?php
                         foreach($list as $res){
                  echo '<tr>
                   <th scope="row"><span class="badge badge-secondary badge-pill">'.$res['account'].'</span></th>
                      <td><span class="badge badge-dark badge-pill">'.$res['money'].'￥</span></td>
                      <td><span class="badge badge-danger badge-pill">'.$res['fee'].'￥</span></td>
                      <td><span class="badge badge-secondary badge-pill">'.$res['time'].'</span></td>
                      <td>'.($res['status']==1?'<span class="badge badge-primary badge-pill">已完成</span>':'<span class="badge badge-danger badge-pill">未完成</span>').'</td>
                    </tr>';
                    }?>
                  </tbody>
                </table>
            </div>
            </div>
          </div>
        </div>
           <div class="col-lg-12">
          <div class="card" >
            <div class="card-header text-uppercase">官方信息</div>
             <div class="card-body">
                <ul class="list-group">
                    <li class="list-group-item">客服QQ:&nbsp;<?php echo $conf['web_qq'];?></li>
                    <li class="list-group-item ">结&nbsp;算&nbsp;群：<?php echo $conf['QQqun'];?>&nbsp;<a href="<?php echo $conf['qun']?>" target="_blank"><span class="badge badge-danger badge-pill">点击加入</span></a>

                    </li>
                    <li class="list-group-item list-group-item-primary">联系邮箱：<?php echo $conf['email'];?></li>
                    <li class="list-group-item list-group-item-secondary">联系电话；<?php echo $conf['phone']?></li>
                  </ul>
             </div>
          </div>
        </div>
     </div>   
     </div> 

      <div class="row">

      <div class="col-lg-12">
          <div class="card">
            <div class="card-header text-uppercase">广告招商</div>
             <div class="card-body">
                <div class="list-group">
                 <?php
                    foreach ($gong as $row){
                  
                  ?>
                    <a href="<?php echo $row['usernane'];?>" class="list-group-item list-group-item-action flex-column align-items-start">
                      <div class="d-flex w-100 justify-content-between">
                       <h5 class="mb-1"><?php echo $row['title'];?></h5>
                        <small class="text-muted"><?php echo $row['time'];?></small>
                      </div>
                      
                      <small class="text-muted"><?php echo $row['content'];?></small>
                    </a>
                    <?php }?>
                  </div>
             </div>
          </div>
        </div>
     
     </div>     
</div>
</div>
 <a href="javaScript:void();" class="back-to-top"><i class="fa fa-angle-double-up"></i> </a>  
  </div>
  <!--酷享云支付版权所有，系统开发者:余生 QQ；2316803263，请认准正版支付，购买正版联系作者-->